#if !defined _TEACUP_H_
#define _TEACUP_H_

#include <string.h>
#include <string>

// tea encryption algorithm class


struct teacup
{
	enum 
	{
		tea_key_len = 16,
		tea_buf_align = 8
	};

	typedef unsigned char tea_key_t[tea_key_len];
	
	bool load_key( const std::string &txt_key );
	
	bool decode( unsigned char *_buffer, size_t _size );
	
	bool encode( unsigned char *_buffer, size_t _size );
	
	tea_key_t key_;
};

#endif
